package com.elsa.smart_buffet.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.elsa.smart_buffet.pojo.Menu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MenuMapper extends BaseMapper<Menu> {

    int selectMCategoryCount();

    List<Menu> selectMenuByCategory(@Param("category") String category);

    List<Menu> selectMenuBySearchData(@Param("data") String data);

    List<Menu> getTopLook();

}